package com.education.wisdom.service.impl;

import com.education.common.utils.Convert;
import com.education.wisdom.mapper.MsworkingMapper;
import com.education.wisdom.pojo.Msworking;
import com.education.wisdom.service.MsworkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 工作页 服务层实现
 * 
 * @author ruoyi
 * @date 2018-12-18
 */
@Service
public class MsworkingServiceImpl implements MsworkingService
{
	@Autowired
	private MsworkingMapper msworkingMapper;

	/**
     * 查询工作页信息
     * 
     * @param id 工作页ID
     * @return 工作页信息
     */
    @Override
	public Msworking selectMsworkingById(Integer id)
	{
	    return msworkingMapper.selectMsworkingById(id);
	}
	
	/**
     * 查询工作页列表
     * 
     * @param createuser 用户编号
     * @return 工作页集合
     */
	@Override
	public List<Msworking> selectMsworkingList(Integer createuser)
	{
	    return msworkingMapper.selectMsworkingList(createuser);
	}
	
    /**
     * 新增工作页
     * 
     * @param msworking 工作页信息
     * @return 结果
     */
	@Override
	public int insertMsworking(Msworking msworking)
	{
	    return msworkingMapper.insertMsworking(msworking);
	}
	
	/**
     * 修改工作页
     * 
     * @param msworking 工作页信息
     * @return 结果
     */
	@Override
	public int updateMsworking(Msworking msworking)
	{
	    return msworkingMapper.updateMsworking(msworking);
	}

	/**
     * 删除工作页对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteMsworkingByIds(String ids)
	{
		return msworkingMapper.deleteMsworkingByIds(Convert.toStrArray(ids));
	}

	@Override
	public List<Msworking> selectStudentList(Map<String, Object> map) {
		return msworkingMapper.selectStudentList(map);
	}

	@Override
	public List<Msworking> selectList(Map<String, Object> map) {
		return msworkingMapper.selectList(map);
	}

}
